/*
 * Copyright (c) 2016- 2020 qolome.com Inc. All Rights Reserved.
 * ProjectName: qolome-knowledge
 * FileName: ThreeCubes.java
 * Author: jiangfeng@qolome.com
 * Date: 2020/4/26 下午5:35
 * LastModified: 2020/02/28 00:17:28
 */

/**
 * 
 */
package com.qolome.knowledge.maths.algorithm;

import java.math.BigDecimal;

/**
 * @Description: 3个立方数表达和
 * @author 姜锋
 * @date 2019年4月7日 下午8:18:23 
 * @version V1.0   
 *
 */
public class ThreeCubes {
	
	public static BigDecimal calculation(String x,String y, String z) {
		return new BigDecimal(x).pow(3).add(new BigDecimal(y).pow(3)).add(new BigDecimal(z).pow(3));
	}
	
	
	
	public static void main(String[] args) {
		
		
		System.out.println("计算输出结果"+calculation("8866128975287528","-8778405442862239","-2736111468807040"));
		System.out.println("计算输出结果"+calculation("2","1","-1"));
	}
	
	
}
